package me.like.diandian.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import androidx.core.app.ActivityCompat;

import me.like.diandian.R;
import me.like.diandian.base.BaseActivity;
import me.like.diandian.databinding.ActivityAboutBinding;
import me.like.diandian.util.CommonUtils;

public class AboutActivity extends BaseActivity<ActivityAboutBinding> {
    @Override
    protected int getLayoutId() {
        return R.layout.activity_about;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding.tlvTitle.setTitle("关于我们");
        binding.tlvTitle.setBackgroundColor(ActivityCompat.getColor(this,R.color.white));
        binding.tlvTitle.setLeftimgtype(2);

        String versionName = CommonUtils.getVersionName();
        binding.setAppVersion(versionName);
        setstateBar(true);
    }

    public static void launch(Context context) {
        context.startActivity(new Intent(context, AboutActivity.class));
    }
}
